import request from '@/utils/request'

// 获取单位信息
export function getHosp(params) {
  return request({
    url: '/base/getHosp',
    method: 'GET',
    params
  })
}

// 获取药品单位
export function mediUnitList(params) {
  return request({
    url: '/base/mediUnitList',
    method: 'GET',
    params
  })
}

// 获取用药途径
export function mediPassList(params) {
  return request({
    url: '/base/mediPassList',
    method: 'GET',
    params
  })
}

// 获取用药频次
export function useTypeList(params) {
  return request({
    url: '/base/useTypeList',
    method: 'GET',
    params
  })
}

// 获取诊断编码
export function diagList(data) {
  return request({
    url: '/base/diagList',
    method: 'POST',
    data
  })
}

// 获取支付类型
export function chargeCatList(params) {
  return request({
    url: '/base/chargeCatList',
    method: 'GET',
    params
  })
}
